sizerequest: Add a critical when for_size is too small
authorBenjamin Otte <otte@redhat.com>
Fri, 19 Nov 2021 20:58:09 +0000 (21:58 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 19 Nov 2021 22:46:59 +0000 (23:46 +0100)
commit163616cc0ada31ad667e8db7b22a6fa817021ebc
treead3e46bf64c5bfc41753dc6d00649f6984a38905
parente378dc4c2842f4b35189ad7d1ca6cc77f80f0461
sizerequest: Add a critical when for_size is too small

It's not expensive to check it because we'll cache the dfault size
request anyway, and people do it wrong a lot.
As a bonus, don't do any return_if_fail(), just use the min size
instead.
gtk/gtksizerequest.c